package com.probiz.estoresa.sales.web.action;

import javax.servlet.http.HttpServletRequest;
import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;
import com.probiz.estore.core.controller.GenericStoreAdminController;
import com.probiz.estore.common.model.sales.Applicants;
import com.probiz.estore.sales.service.ApplicantsManager;

public class ApplicantsController extends GenericStoreAdminController<Applicants> {

    private ApplicantsManager applicantsManager = null;

    public void setApplicantsManager(ApplicantsManager inMgr) {
        this.applicantsManager = inMgr;
    } 

	@Override
	protected void initController() throws Exception {
		mgr = applicantsManager;
	}
	
	@Override
	protected String getEntityName(Applicants entity) {
		return entity.getApplicantsName();
	}
	
	@Override
	protected void preSave(HttpServletRequest request, Applicants entity, BindException errors) {
	}
	
	@Override
	protected void onShowForm(HttpServletRequest request, ModelAndView mv){
	}

}
